package com.cheetah.exceptions;

import lombok.Getter;

@Getter
public class CheetahException extends Exception {

    private String message;

    private int errorCode;

    public CheetahException(){
        super();
    }

    public CheetahException(String message){
        super(message);
        this.message = message;
    }

    public CheetahException(String message, int errorCode){
        super(message);
        this.message = message;
        this.errorCode = errorCode;
    }

    public CheetahException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public CheetahException(String message, int errorCode, Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
